package com.navi.loaddata.core.oracleEntity.cell2;

import javax.persistence.*;

/**
 * Created by ghost on 2018/3/25.
 */
@Entity
@Table(name = "ETL_CELL2_PRODUCT_V", schema = "EDALDR", catalog = "")
public class EtlCell2ProductV {
    private String productId;
    private String productGroup;
    private String productVersion;
    private String productType;
    private String layoutId;
    private String productIdErp;
    private String modelName;
    private String panelSize;
    private Long panelQty;

    @Id
    @Column(name = "PRODUCT_ID")
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "PRODUCT_GROUP")
    public String getProductGroup() {
        return productGroup;
    }

    public void setProductGroup(String productGroup) {
        this.productGroup = productGroup;
    }

    @Basic
    @Column(name = "PRODUCT_VERSION")
    public String getProductVersion() {
        return productVersion;
    }

    public void setProductVersion(String productVersion) {
        this.productVersion = productVersion;
    }

    @Basic
    @Column(name = "PRODUCT_TYPE")
    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    @Basic
    @Column(name = "LAYOUT_ID")
    public String getLayoutId() {
        return layoutId;
    }

    public void setLayoutId(String layoutId) {
        this.layoutId = layoutId;
    }

    @Basic
    @Column(name = "PRODUCT_ID_ERP")
    public String getProductIdErp() {
        return productIdErp;
    }

    public void setProductIdErp(String productIdErp) {
        this.productIdErp = productIdErp;
    }

    @Basic
    @Column(name = "MODEL_NAME")
    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    @Basic
    @Column(name = "PANEL_SIZE")
    public String getPanelSize() {
        return panelSize;
    }

    public void setPanelSize(String panelSize) {
        this.panelSize = panelSize;
    }

    @Basic
    @Column(name = "PANEL_QTY")
    public Long getPanelQty() {
        return panelQty;
    }

    public void setPanelQty(Long panelQty) {
        this.panelQty = panelQty;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCell2ProductV that = (EtlCell2ProductV) o;

        if (productId != null ? !productId.equals(that.productId) : that.productId != null) return false;
        if (productGroup != null ? !productGroup.equals(that.productGroup) : that.productGroup != null) return false;
        if (productVersion != null ? !productVersion.equals(that.productVersion) : that.productVersion != null)
            return false;
        if (productType != null ? !productType.equals(that.productType) : that.productType != null) return false;
        if (layoutId != null ? !layoutId.equals(that.layoutId) : that.layoutId != null) return false;
        if (productIdErp != null ? !productIdErp.equals(that.productIdErp) : that.productIdErp != null) return false;
        if (modelName != null ? !modelName.equals(that.modelName) : that.modelName != null) return false;
        if (panelSize != null ? !panelSize.equals(that.panelSize) : that.panelSize != null) return false;
        if (panelQty != null ? !panelQty.equals(that.panelQty) : that.panelQty != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = productId != null ? productId.hashCode() : 0;
        result = 31 * result + (productGroup != null ? productGroup.hashCode() : 0);
        result = 31 * result + (productVersion != null ? productVersion.hashCode() : 0);
        result = 31 * result + (productType != null ? productType.hashCode() : 0);
        result = 31 * result + (layoutId != null ? layoutId.hashCode() : 0);
        result = 31 * result + (productIdErp != null ? productIdErp.hashCode() : 0);
        result = 31 * result + (modelName != null ? modelName.hashCode() : 0);
        result = 31 * result + (panelSize != null ? panelSize.hashCode() : 0);
        result = 31 * result + (panelQty != null ? panelQty.hashCode() : 0);
        return result;
    }
}
